#pragma once

class ResourceManager;

class ProfileIni{
	int Id;
	WCHAR ProfileFile[MAX_PATH];
	WCHAR App[41];
	ResourceManager* RM;
public:
	void SetFileManager(ResourceManager* fm){RM = fm;}
	void IntoFile(int id);
	void IntoApp(const WCHAR* app);

	int GetValue(const WCHAR* Key);
	void AssertGetValue(const WCHAR* Key, int& v, int Min, int Max);

	void SetValue(const WCHAR* Key, int value);

	ProfileIni( ){Id = 0xFFFFFFFF; RM = 0; ProfileFile[0]=0;}
};